package com.bean;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan("com.bean")
public class PrePostConfig {
	@Bean(initMethod = "init",destroyMethod = "destroy")
	public BeanWay beanWay() {
		return new BeanWay();
	}

	@Bean
	public BeanWay2 beanWay2() {
		return new BeanWay2();
	}
}
